// pages/example/list/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list:[
      {}, {}, {}, {}, {}
    ],
    loading:false,
    finish:false,
  },
  getList(type){
    setTimeout(()=>{
      this.setData({
        finish: type.detail != 'refresh'&&this.data.list.length > 15,
        list: type.detail == 'refresh' ? [{}, {}, {}, {}, {}] : [...this.data.list, {}, {}, {}, {}, {}],
        loading:false,
      })
    }, type.detail == 'refresh'?3000:1000)
  }
})